﻿<UserControl x:Class="AudioModule.AudioModueView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
                d:DesignHeight="570" d:DesignWidth="300">
    <Grid>
        <ComboBox Height="24" HorizontalAlignment="Left" Margin="68,8,0,0" Name="comboDevices" VerticalAlignment="Top" Width="158" />
        <Button Content="Start" Height="23" HorizontalAlignment="Left" Margin="14,8,0,0" Name="buttonStart" VerticalAlignment="Top" Width="48" Click="buttonStart_Click" />
        <TextBlock Text="Run" Height="21" HorizontalAlignment="Left" Margin="14,85,0,0" Name="labelRun" VerticalAlignment="Top" />
        <TextBlock Text="Trigger" Height="28" HorizontalAlignment="Left" Margin="12,237,0,0" Name="labelLeftTrigger" VerticalAlignment="Top" />
        <TextBlock Text="CH1(Left)" Height="28" HorizontalAlignment="Left" Margin="10,211,0,0" Name="label4" VerticalAlignment="Top" />
        <TextBlock Text="CH2(Right)" Height="28" HorizontalAlignment="Left" Margin="9,335,0,0" Name="label5" VerticalAlignment="Top" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="90,268,0,0" Name="sliderLeftTrigger" VerticalAlignment="Top" Width="198" Maximum="1" Minimum="-1" Value="0.25" IsEnabled="True"  />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="38,268,0,0" Name="textBoxLeftTrigger" VerticalAlignment="Top" Width="50" Text="{Binding ElementName=sliderLeftTrigger, Path=Value}" TextChanged="textBox_TextChanged" />
        <Slider Height="23" HorizontalAlignment="Left" IsEnabled="True"  Margin="90,394,0,0" Maximum="1" Minimum="-1" Name="sliderRightTrigger"  Value="0.25" VerticalAlignment="Top" Width="198" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="38,394,0,0" Name="textBoxRightTrigger" Text="{Binding ElementName=sliderRightTrigger, Path=Value}" VerticalAlignment="Top" Width="50" TextChanged="textBox_TextChanged" />
        <TextBlock Text="In" Height="28" HorizontalAlignment="Left" Margin="12,266,0,0" Name="label6" VerticalAlignment="Top" />
        <TextBlock Text="In" Height="28" HorizontalAlignment="Left" Margin="12,392,0,0" Name="label7" VerticalAlignment="Top" />
        <TextBlock Text="Out" Height="28" HorizontalAlignment="Left" Margin="3,300,0,0" Name="label8" VerticalAlignment="Top" />
        <Slider Height="23" HorizontalAlignment="Left" IsEnabled="True"  Margin="90,300,0,0" Maximum="1" Minimum="0" Name="sliderLeftOff"  Value="0.1" VerticalAlignment="Top" Width="198" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="38,300,0,0" Name="textBoxLeftOff" Text="{Binding ElementName=sliderLeftOff, Path=Value}" VerticalAlignment="Top" Width="50" TextChanged="textBox_TextChanged" />
        <TextBlock Text="Out" Height="28" HorizontalAlignment="Left" Margin="3,424,0,0" Name="label9" VerticalAlignment="Top" />
        <Slider Height="23" HorizontalAlignment="Left" IsEnabled="True"  Margin="90,424,0,0" Maximum="1" Minimum="0" Name="sliderRightOff"  Value="0.1" VerticalAlignment="Top" Width="198" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="38,424,0,0" Name="textBoxRightOff" Text="{Binding ElementName=sliderRightOff, Path=Value}" VerticalAlignment="Top" Width="50" TextChanged="textBox_TextChanged" />
        <TextBlock Text="Trigger" Height="28" HorizontalAlignment="Left" Margin="12,363,0,0" Name="labelRightTrigger" VerticalAlignment="Top" />
        <CheckBox Content="Enable" Height="16" HorizontalAlignment="Left" Margin="90,216,0,0" Name="checkBoxLeft" VerticalAlignment="Top" IsChecked="True" Checked="checkBoxChEnable" Unchecked="checkBoxChEnable" />
        <CheckBox Content="Enable" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="90,340,0,0" Name="checkBoxRight" VerticalAlignment="Top" Unchecked="checkBoxChEnable" Checked="checkBoxChEnable" />
        <ProgressBar Height="10" HorizontalAlignment="Left" Margin="90,247,0,0" Name="progressBarLeft" VerticalAlignment="Top" Width="198" Maximum="1" Minimum="-1" />
        <ProgressBar Height="10" HorizontalAlignment="Left" Margin="90,370,0,0" Maximum="1" Minimum="-1" Name="progressBarRight" VerticalAlignment="Top" Width="198" />
        <TextBlock Text="Buffer" Height="28" HorizontalAlignment="Left" Margin="14,107,0,0" Name="label3" VerticalAlignment="Top" />
        <TextBlock Text="Memory" Height="28" HorizontalAlignment="Left" Margin="131,107,0,0" Name="label10" VerticalAlignment="Top" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="185,109,0,0" Name="textBoxMemory" VerticalAlignment="Top" Width="106" Text="30000" TextChanged="textBoxMemory_TextChanged" />
        <TextBlock Text="Filter" Height="28" HorizontalAlignment="Left" Margin="11,476,0,0" Name="label11" VerticalAlignment="Top" />
        <ComboBox Height="24" HorizontalAlignment="Left" Margin="58,480,0,0" Name="comboBoxFilter" VerticalAlignment="Top" Width="120" Loaded="comboBoxFilter_Loaded" SelectionChanged="comboBoxFilter_SelectionChanged">
            <ComboBoxItem Content="None" />
            <ComboBoxItem Content="Mean" />
            <ComboBoxItem Content="Gauss" />
            <ComboBoxItem Content="BiQuad" />
        </ComboBox>
        <CheckBox Content="Noise reduction" Height="16" HorizontalAlignment="Left" Margin="11,514,0,0" Name="checkBoxNoiseReduction" VerticalAlignment="Top" IsChecked="True" Checked="checkBoxNoiseReduction_Checked" Unchecked="checkBoxNoiseReduction_Checked" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="125,511,0,0" Name="textBoxNoiseReduction" VerticalAlignment="Top" Width="41" Text="0.1" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="58,109,0,0" Name="textBoxBufferCnt" VerticalAlignment="Top" Width="72" Text="100" TextChanged="textBox_TextChanged" />
        <TextBlock Text="WASAPI" Height="28" HorizontalAlignment="Left" Margin="230,8,0,0" Name="labelWasapi" VerticalAlignment="Top" Visibility="Collapsed" />
        <TextBlock Text="Waveformat" Height="28" HorizontalAlignment="Left" Margin="10,34,0,0" Name="label12" VerticalAlignment="Top" />
        <TextBlock Text="-------" Height="28" HorizontalAlignment="Left" Margin="90,34,0,0" Name="labelWaveformat" VerticalAlignment="Top" />
        <TextBlock Text="Channel" Height="28" HorizontalAlignment="Left" Margin="132,53,0,0" Name="label13" VerticalAlignment="Top" />
        <TextBlock Text="---" Height="28" HorizontalAlignment="Left" Margin="185,53,0,0" Name="labelChannel" VerticalAlignment="Top" />
        <TextBlock Text="Bits/Sample" Height="28" HorizontalAlignment="Left" Margin="12,53,0,0" Name="label14" VerticalAlignment="Top" />
        <TextBlock Text="---" Height="28" HorizontalAlignment="Left" Margin="98,53,0,0" Name="labelBitsPerSample" VerticalAlignment="Top" />
        <TextBlock Text="Hz" Height="28" HorizontalAlignment="Left" Margin="137,34,0,0" Name="label15" VerticalAlignment="Top" />
        <RadioButton Content="On" Height="16" HorizontalAlignment="Left" Margin="58,90,0,0" Name="radioButtonRunOn" VerticalAlignment="Top" GroupName="Running" IsChecked="True" Checked="radioButtonRun_Checked" />
        <RadioButton Content="Off" Height="16" HorizontalAlignment="Left" Margin="97,90,0,0" Name="radioButtonRunOff" VerticalAlignment="Top" GroupName="Running" Checked="radioButtonRun_Checked"/>
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" HorizontalAlignment="Left" Name="border1" VerticalAlignment="Top" Width="300" Margin="0,82,0,0" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" HorizontalAlignment="Left" Name="border2" VerticalAlignment="Top" Width="300" Margin="0,140,0,0" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" HorizontalAlignment="Left" Name="border3" VerticalAlignment="Top" Width="300" Margin="0,211,0,0" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" HorizontalAlignment="Left" Name="border4" VerticalAlignment="Top" Width="300" Margin="0,335,0,0" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" HorizontalAlignment="Left" Name="border5" VerticalAlignment="Top" Width="300" Margin="0,460,0,0" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" HorizontalAlignment="Left" Name="border6" VerticalAlignment="Top" Width="300" Margin="0,560,0,0" />
        <TextBlock Text="X Axis" Height="28" HorizontalAlignment="Left" Margin="16,147,0,0" Name="label1" VerticalAlignment="Top" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="66,149,0,0" Name="textBoxXAxisName" VerticalAlignment="Top" Width="108" Text="Amplitude" TextChanged="textBox_TextChanged" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="185,149,0,0" Name="textBoxXAxisMultiple" VerticalAlignment="Top" Width="106" Text="1.0" TextChanged="textBox_TextChanged" />
        <TextBlock Text="Y Axis" Height="28" HorizontalAlignment="Left" Margin="16,177,0,0" Name="label2" VerticalAlignment="Top" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="67,179,0,0" Name="textBoxYAxisName" Text="Sampling index" VerticalAlignment="Top" Width="108" TextChanged="textBox_TextChanged" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="185,179,0,0" Name="textBoxYAxisMultiple" Text="1.0" VerticalAlignment="Top" Width="106" TextChanged="textBox_TextChanged" />
    </Grid>
</UserControl>
